﻿ 

 

// ******************************************************
// 这段代码是自动生成的
// 修改里面的代码，下次生成的时候会被覆盖
// ******************************************************
using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Diagnostics;
using System.ServiceModel;
using System.Threading.Tasks;
using Sharp.Application;
using Sharp.DataTransferObject;
using System.ServiceModel.Activation;
using Sharp.DataTransferObject.Workflow;
using Sharp.Infrastructure.Search;
using Sharp.ServiceContracts;
using Sharp.Infrastructure;
using Sharp.Infrastructure.Interfaces;
using Sharp.Infrastructure.IoC;
namespace Sharp.Services
{
	//[DebuggerStepThrough]
	[AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]
	[ServiceBehavior(InstanceContextMode = InstanceContextMode.PerCall, ConcurrencyMode = ConcurrencyMode.Multiple, UseSynchronizationContext = false)]
	public class PlatformService : IPlatformService
	{
		private readonly IPlatformService _impl = ServiceLocator.Instance.GetService<IPlatformService>();
		public Result SaveSubSystem(SubSystemDTO model)
		{
			try
			{
				return _impl.SaveSubSystem(model);
			}
			catch(Exception ex)
			{
				throw new FaultException<FaultData>(FaultData.CreateFromException(ex), FaultData.CreateFaultReason(ex));
			}
		}
		public Result DeleteSubSystem(Guid[] ids)
		{
			try
			{
				return _impl.DeleteSubSystem(ids);
			}
			catch(Exception ex)
			{
				throw new FaultException<FaultData>(FaultData.CreateFromException(ex), FaultData.CreateFaultReason(ex));
			}
		}
		public SubSystemDTO GetSubSystemInfo(Guid id)
		{
			try
			{
				return _impl.GetSubSystemInfo(id);
			}
			catch(Exception ex)
			{
				throw new FaultException<FaultData>(FaultData.CreateFromException(ex), FaultData.CreateFaultReason(ex));
			}
		}
		public PagedResult<Sharp.DataTransferObject.SubSystemDTO> GetSubSystemPaged(PagingFeature pf)
		{
			try
			{
				return _impl.GetSubSystemPaged(pf);
			}
			catch(Exception ex)
			{
				throw new FaultException<FaultData>(FaultData.CreateFromException(ex), FaultData.CreateFaultReason(ex));
			}
		}
		public IList<Sharp.DataTransferObject.SubSystemDTO> GetSubSystems()
		{
			try
			{
				return _impl.GetSubSystems();
			}
			catch(Exception ex)
			{
				throw new FaultException<FaultData>(FaultData.CreateFromException(ex), FaultData.CreateFaultReason(ex));
			}
		}
		public Task<Sharp.DataTransferObject.SubSystemDTO> GetSubSystemByClientId(String clientId)
		{
			try
			{
				return _impl.GetSubSystemByClientId(clientId);
			}
			catch(Exception ex)
			{
				throw new FaultException<FaultData>(FaultData.CreateFromException(ex), FaultData.CreateFaultReason(ex));
			}
		}
		public Result SaveMasterData(MasterDataDTO masterData)
		{
			try
			{
				return _impl.SaveMasterData(masterData);
			}
			catch(Exception ex)
			{
				throw new FaultException<FaultData>(FaultData.CreateFromException(ex), FaultData.CreateFaultReason(ex));
			}
		}
		public Result DeleteMasterData(Guid[] ids)
		{
			try
			{
				return _impl.DeleteMasterData(ids);
			}
			catch(Exception ex)
			{
				throw new FaultException<FaultData>(FaultData.CreateFromException(ex), FaultData.CreateFaultReason(ex));
			}
		}
		public MasterDataDTO GetMasterDataInfo(Guid id)
		{
			try
			{
				return _impl.GetMasterDataInfo(id);
			}
			catch(Exception ex)
			{
				throw new FaultException<FaultData>(FaultData.CreateFromException(ex), FaultData.CreateFaultReason(ex));
			}
		}
		public IList<Sharp.DataTransferObject.MasterDataSimpleDTO> GetMasterData()
		{
			try
			{
				return _impl.GetMasterData();
			}
			catch(Exception ex)
			{
				throw new FaultException<FaultData>(FaultData.CreateFromException(ex), FaultData.CreateFaultReason(ex));
			}
		}
		public IList<Sharp.DataTransferObject.MasterDataSimpleDTO> GetMasterDataByCategory(String category)
		{
			try
			{
				return _impl.GetMasterDataByCategory(category);
			}
			catch(Exception ex)
			{
				throw new FaultException<FaultData>(FaultData.CreateFromException(ex), FaultData.CreateFaultReason(ex));
			}
		}
		public IList<Sharp.DataTransferObject.MasterDataDTO> GetProvinceData()
		{
			try
			{
				return _impl.GetProvinceData();
			}
			catch(Exception ex)
			{
				throw new FaultException<FaultData>(FaultData.CreateFromException(ex), FaultData.CreateFaultReason(ex));
			}
		}
		public String Code2Text(String code)
		{
			try
			{
				return _impl.Code2Text(code);
			}
			catch(Exception ex)
			{
				throw new FaultException<FaultData>(FaultData.CreateFromException(ex), FaultData.CreateFaultReason(ex));
			}
		}
		public IList<MasterDataCategoryDTO> GetMasterDataSort()
		{
			try
			{
				return _impl.GetMasterDataSort();
			}
			catch(Exception ex)
			{
				throw new FaultException<FaultData>(FaultData.CreateFromException(ex), FaultData.CreateFaultReason(ex));
			}
		}
		public PagedResult<Sharp.DataTransferObject.MasterDataDTO> MasterDataGetPaged(PagingFeature pf)
		{
			try
			{
				return _impl.MasterDataGetPaged(pf);
			}
			catch(Exception ex)
			{
				throw new FaultException<FaultData>(FaultData.CreateFromException(ex), FaultData.CreateFaultReason(ex));
			}
		}
		public Result SaveMasterDataCategory(MasterDataCategoryDTO masterDataCategory)
		{
			try
			{
				return _impl.SaveMasterDataCategory(masterDataCategory);
			}
			catch(Exception ex)
			{
				throw new FaultException<FaultData>(FaultData.CreateFromException(ex), FaultData.CreateFaultReason(ex));
			}
		}
		public Result DeleteMasterDataCategory(Int32[] ids)
		{
			try
			{
				return _impl.DeleteMasterDataCategory(ids);
			}
			catch(Exception ex)
			{
				throw new FaultException<FaultData>(FaultData.CreateFromException(ex), FaultData.CreateFaultReason(ex));
			}
		}
		public MasterDataCategoryDTO GetMasterDataCategoryInfo(Int32 id)
		{
			try
			{
				return _impl.GetMasterDataCategoryInfo(id);
			}
			catch(Exception ex)
			{
				throw new FaultException<FaultData>(FaultData.CreateFromException(ex), FaultData.CreateFaultReason(ex));
			}
		}
		public IList<Sharp.DataTransferObject.MasterDataCategoryDTO> GetMasterDataCategory()
		{
			try
			{
				return _impl.GetMasterDataCategory();
			}
			catch(Exception ex)
			{
				throw new FaultException<FaultData>(FaultData.CreateFromException(ex), FaultData.CreateFaultReason(ex));
			}
		}
		public Result SaveOAuthConfig(OAuthConfigDTO model)
		{
			try
			{
				return _impl.SaveOAuthConfig(model);
			}
			catch(Exception ex)
			{
				throw new FaultException<FaultData>(FaultData.CreateFromException(ex), FaultData.CreateFaultReason(ex));
			}
		}
		public Result DeleteOAuthConfig(Guid[] ids)
		{
			try
			{
				return _impl.DeleteOAuthConfig(ids);
			}
			catch(Exception ex)
			{
				throw new FaultException<FaultData>(FaultData.CreateFromException(ex), FaultData.CreateFaultReason(ex));
			}
		}
		public OAuthConfigDTO GetOAuthConfigInfo(Guid id)
		{
			try
			{
				return _impl.GetOAuthConfigInfo(id);
			}
			catch(Exception ex)
			{
				throw new FaultException<FaultData>(FaultData.CreateFromException(ex), FaultData.CreateFaultReason(ex));
			}
		}
		public PagedResult<Sharp.DataTransferObject.OAuthConfigDTO> GetOAuthConfigPaged(PagingFeature pf)
		{
			try
			{
				return _impl.GetOAuthConfigPaged(pf);
			}
			catch(Exception ex)
			{
				throw new FaultException<FaultData>(FaultData.CreateFromException(ex), FaultData.CreateFaultReason(ex));
			}
		}
		public IList<Sharp.DataTransferObject.OAuthConfigDTO> GetOAuthConfigs()
		{
			try
			{
				return _impl.GetOAuthConfigs();
			}
			catch(Exception ex)
			{
				throw new FaultException<FaultData>(FaultData.CreateFromException(ex), FaultData.CreateFaultReason(ex));
			}
		}
		public OAuthConfigDTO GetOAuthConfigByClientId(String clientId)
		{
			try
			{
				return _impl.GetOAuthConfigByClientId(clientId);
			}
			catch(Exception ex)
			{
				throw new FaultException<FaultData>(FaultData.CreateFromException(ex), FaultData.CreateFaultReason(ex));
			}
		}

	}
}